<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>个人中心</title>
		<link rel="stylesheet" type="text/css" href="http://127.0.0.1/mogujie/Static/Home/css/myself.css"/>
		<script src="http://127.0.0.1/mogujie/Static/js/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function(){
//				alert(1);
			
				
				var k=0;
//				$('.div_2 a').click(function(){
//					if(k==0){
//						$('.div_2 ul').css({display:'block'});
//						k=1;
//					}else if(k==1){
//						$('.div_2 ul').css({display:'none'})
//						k=0;
//					}
//					
//				})
			
				$('.div_4 a').click(function(){
					if(k==0){
						$('.div_4 ul').css({display:'block'});
						k=1;
					}else if(k==1){
						$('.div_4 ul').css({display:'none'})
						k=0;
					}
					
				})
				
				
			})
		</script>
		<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<link rel="stylesheet" href="http://127.0.0.1/mogujie/Static/Home/css/index.css" />
<link rel="stylesheet" type="text/css" href="http://127.0.0.1/mogujie/Static/Home/css/animate.css"/>
<script type="text/javascript" src="http://127.0.0.1/mogujie/Static/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="http://127.0.0.1/mogujie/Static/mgjs/index.js"></script>
</head>

<body>
<!-- 首页首屏开始**************************** -->


<!-- 顶部红色区域 -->
<div id="top">
	<!-- 顶级 -->
	<div id="pic">
	<!-- 右侧 -->
		<ul>
			    <?php if($hd['session']['username'] && $hd['session']['uid']){ ?>
				<li class='userinfo'>
					欢迎回来<a href="<?php echo U('Search/index');?>" class='uname' style="margin-right:10px ;"><?php echo $hd['session']['username'];?></a>
				</li>
				<li class="sp">|</li>
				<li><a href="<?php echo U('Login/out');?>">退出</a></li>  
			<?php }else{ ?>
				<li><a href="<?php echo U('Register/index');?>">注册</a></li>
				<li><a href="<?php echo U('Login/index');?>">登陆</a></li>
			<?php } ?>
			<li><span>|</span><a href="">QQ登陆</a></li>
			<li><a href="">微信登陆</a></li>
			<li><a href="">微博登陆</a></li>
			<li><span>|</span><a href="">手机蘑菇街</a></li>
			<li><span>|</span><a href="">帮助中心</a></li>
			
		</ul>
		<!-- 中部 -->
		<div class="logo">
			<div class="logo-left">
				<a href="<?php echo U('Index/index');?>"><img src="http://127.0.0.1/mogujie/Static/Home/images/wjmsj.png" alt="" /></a>
			</div>
			<!-- 搜索区域 -->
			<div class="logo-middle">
				<form action="">
					<input type="text" class="l" value=" 清爽秋季，运动起来" />
					<input type="submit" class="y" value="" />
				</form>
				<!-- 购物车 -->
				<div class="car">
					<div class="xia-1">
						<a href="<?php echo U('Cart/index');?>">购物车
							<span>
								    <?php if($_SESSION['cart']){ ?>
								<?php echo $hd['session']['cart']['total_rows'];?>
								<?php }else{ ?>0<?php } ?>
							</span>件
						</a>
					</div>
					<div class="xia-2">
						    <?php if($_SESSION['cart']){ ?>
						<div>购物车中有<span style="color: #FF339B;">&nbsp;<?php echo $hd['session']['cart']['total_rows'];?>&nbsp;</span>件商品！
							<br />
							总价:￥<?php echo $hd['session']['cart']['total'];?>
						</div>
						<?php }else{ ?><div>购物车中还没有商品！</div><?php } ?>
					</div>	
				</div>
				<!-- 我的订单 -->
				<div class="count"><a href="<?php echo U('Order/index');?>">我的订单</a></div>
			</div>
		</div>
	</div>
</div>
<!-- 顶部红色区域结束 -->

<!-- 导航条开始 -->
<div id="nav">
	
	<ul>
		
		<li><a href="<?php echo U('Index/index');?>" class="a">首页</a></li>
		<?php foreach ($cateData as $k=>$v){?>
			<li><a href="<?php echo U('List/index',array('cid'=>$v['cid']));?>"><?php echo $v['cname'];?></a></li>
		<?php }?>
	</ul>
	<a href=""></a><img src="http://127.0.0.1/mogujie/Static/Home/images/ds3.jpg" alt="" />
</div>
<!-- 导航条结束 -->
<div id="red"></div>
<!--个人中心开始-->
<div id="myself">
	<!--左侧-->
	<div class="my_left">
		<div class="div_1">
			<div><img src="http://127.0.0.1/mogujie/<?php echo $info['face'];?>" style="width: 100px;height: 100px;"/></div>
			<div class="zhezhao"></div>
			<p><?php echo $hd['session']['username'];?></p>
			<span></span>
		</div>
		<div class="div_2 div_all">
			<a href="<?php echo U('Search/index');?>">我的订单</a>
			<ul>
				<li><a href="">全部订单</a></li>
				<li><a href="">待付款</a></li>
				<li><a href="">待收货</a></li>
				<li><a href="">待评价</a></li>
				<li><a href="">退货退款</a></li>
			</ul>
		</div>
		<div class="div_3 div_all">
			<a href="<?php echo U('Search/addRess');?>">地址管理</a>
		</div>
		<div class="div_4 div_all">
			<a href="<?php echo U('Search/personal');?>">基本信息</a>
		</div>
		<div class="div_4 div_all">
			<a href="<?php echo U('Search/alter');?>">修改头像</a>
		</div>
	</div>
	<!--右侧-->
	<div class="my_right">
		<ul>
			<li class="one">商品</li>
			<li>单价(元)</li>
			<li>数量</li>
			<li>售后</li>
			<li> 实付款(元)</li>
			<li>交易状态</li>
			<li>操作</li>
		</ul>
		    <?php if($Gdata){ ?>
		<?php foreach ($Gdata as $k=>$v){?> 
		<div class="list">
			<table border="0" cellspacing="0" cellpadding="0" class="tables">
				<tr>
					<p>订单编号：<span><?php echo $v['number'];?></span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;生成时间：<span><?php echo date('Y-m-d H:i:s',$v['time']);?></span></p>
				</tr>
				<tr bgcolor="white">
					<td width="334" height="120">
						<a href=""><img src="http://127.0.0.1/mogujie/<?php echo $v['pic'];?>"/></a>
						<div class="ddiv">
							<p style="margin-top: 15px;"><a href=""><?php echo $v['gname'];?></a></p>
							<p><?php echo $v['spec'];?></p>
							<!--<p>尺码 ：35</p>-->
						</div>
					</td>
					<td width="120" height="120"><?php echo $v['price'];?></td>
					<td width="112" height="120"><?php echo $v['quantity'];?></td>
					<td width="120" height="120"></td>
					<td width="112" height="120"><?php echo $v['subtotal'];?></td>
					<td width="112" height="120"><?php echo $v['status'];?></td>
					<td width="110" height="120">
						<a href="<?php echo U('Search/delOrder',array('oid'=>$v['oid']));?>">删除订单</a>
					</td>
				</tr>
			</table>
		</div>
		<?php }?>
		<?php }else{ ?>
		<div class="k_all">
			<div class="k_l"></div>
			<div class="k_r">
				<h1>你还没有购买过商品，赶紧去挑选商品～</h1>
				<ul>
					<li>去<a href="">服饰</a>看看大家都喜欢的商品</li>
					<li>去<a href="">团购</a>看看正在折扣中的商品</li>
				</ul>
			</div>
		</div>
		<?php } ?>
	</div>
</div>
<!--个人中心结束-->

<!-- 底部文字 -->
<div id="b_font">
	<div class="bb_font">
		<div class="b_font_l">
			<a href="" class="bone"></a>
			<p>营业执照注册号：<a href="">330106000129004</a></p>
			<p>增值电信业务经营许可证：<a href="">浙B2-20110349</a></p>
			<p>ICP备案号：浙ICP备10044327号-3</p>
			<p>©2015 Mogujie.com 杭州卷瓜网络有限公司</p>		
		</div>
		<div class="b_font_r">
			<dl>
				<dt>公司</dt>
				<dd><a href="">关于我们</a></dd>
				<dd><a href="">招聘信息</a></dd>
				<dd><a href="">联系我们</a></dd>
			</dl>  

			<dl>
				<dt>消费者</dt>
				<dd><a href="">帮助中心</a></dd>
				<dd><a href="">意见反馈</a></dd>
				<dd><a href="">手机版下载</a></dd>
			</dl>
			<dl>
				<dt>商家</dt>
				<dd><a href="">免费开店</a></dd>
				<dd><a href="">商家入驻</a></dd>
				<dd><a href="">管理后台</a></dd>
			</dl>
			<dl class="llast">
				<dt>权威认证</dt>
				<dd>
					<a href="" class="llast-1"></a>
					<a href="" class="llast-2"></a>
					<a href="" class="llast-3"></a>
				</dd>
			</dl>
		</div>
	</div>
</div>




<!-- 底部文字结束 -->
</body>
</html>
